<div id="loginlogout">
    <?php 
    $action = "Authenticate" ;
    $text = "LOGOUT" ;
    if ($response->getAttribute("authenticated_user")===null) {
        $action = "Login" ;
        $text = "LOGIN" ;
    }
    $text = $languageManager->getText($text);
    echo HTML::link($text, "action=".$action);
    ?>
</div>
